package com.jt.mall.controller;

import com.jt.mall.common.entity.RspResult;
import com.jt.mall.service.ItemCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangning
 * @create 2021-12-27 16:45
 */
@RestController
@RequestMapping("/item/cat")
public class ItemCatController {
	@Autowired
	private ItemCatService itemCatService;

	@GetMapping("/list")
	public RspResult findItemCatByParentId() {
		Long parentId = 0L;
		return RspResult.ok(itemCatService.findItemCatByParentId(parentId));
	}

}
